package com.es.www.original.staticProxy;

import com.es.www.original.Image;

/**
 * @Created by michangtao
 * @Date 2022/4/28 17:04
 * @Description
 */
public class RealImage implements Image {

    private String name;

    public RealImage(String name) {
        this.name = name;
        //做一些耗时的操作
        doSomething();
    }

    private void doSomething() {
        System.out.println("耗时");
    }

    @Override
    public String display() {
        String s = "disPlay";
        System.out.println(s);
        return s;
    }
}
